/**
 * Created by Administrator on 2017/2/25 0025.
 */
'use strict';

angular.module('App')   //转义   将json 里面的html  转义成html
    .filter('to_struct',['$sce',function($sce){
        return function(htmls){
            return $sce.trustAsHtml(htmls);

        }

    }])
    .filter('limitNum',[function(){
        return function(data){
            console.log( data.length );
            if( data.length == 11 ){
                return data;
            }else{
                return 0;
            }
        }

    }])
